{load_language_text section="address_book"}
{load_language_text section="buttons" name="button"}

<div id="account">

	<h1>
		{$txt.heading_address}
	</h1>

	{$error}

	<h2 class="underline overline">
		<img class="png-fix" src="{$tpl_path}img/icons/address.png" alt="" /> {$txt.title_standard}
	</h2>
	<p>
		{$txt.text_standard}<br /><br />{$ADDRESS_DEFAULT}
	</p>

	<h2 class="underline overline"><img class="png-fix" src="{$tpl_path}img/icons/address.png" alt="" /> {$txt.title_addresses}</h2>
	
	{foreach name=aussen item=addresses from=$addresses_data}
	<div class="address-book-addresses" >
		<div class="address-book-addresses-name">{$smarty.foreach.aussen.iteration}. {$addresses.NAME}{if $addresses.PRIMARY=='1'} <em>({$txt.title_standard})</em>{/if}</div>
		<div class="address-book-addresses-buttons">
			<a href="{$addresses.BUTTON_EDIT_URL}" class="button_blue button_set"><span class="button-outer"><span class="button-inner">{$button.edit}</span></span></a>
			<a href="{$addresses.BUTTON_DELETE_URL}" class="button_blue button_set"><span class="button-outer"><span class="button-inner">{$button.delete}</span></span></a>
		</div>
	</div>
	{/foreach}
	<br />
	<a href="{$BUTTON_BACK_LINK}" class="button_grey button_set"><span class="button-outer"><span class="button-inner">{$button.back}</span></span></a>
	<a href="{$BUTTON_NEW_URL}" class="button_blue button_set"><span class="button-outer"><span class="button-inner">{$button.new_address}</span></span></a>

	<br />
	<br />
	{$ADDRESS_COUNT}
</div>